﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace PuzzleCrawler
{
    public class MapDef
    {
        public const int EmptyIndex = -1;

        public MapDef()
        {
            HIndex = EmptyIndex;
            HWordIndex = EmptyIndex;
            VIndex = EmptyIndex;
            VWordIndex = EmptyIndex;
            IsEmpty = true;
        }

        public String Word { get; set; }
        public int Row { get; set; }
        public int Col { get; set; }
        /// <summary>
        /// 对应的水平方向的单词索引
        /// </summary>
        public int HIndex { get; set; }
        /// <summary>
        /// 对应的单词里的索引
        /// </summary>
        public int HWordIndex { get; set; }
        public int VIndex { get; set; }
        public int VWordIndex { get; set; }
        public bool IsEmpty { get; set; }
    }
}
